<?php  
include '../config/DBConnect.php';
include('../template/header.php');
include('../template/menuleft.php');
include('../template/menuright.php');
$id=$_GET['id'];
$sql="SELECT * From thongbao where id=".$id;
$rs=mysql_query($sql);
$data=array();
if ($rs) {
 while ($rows=mysql_fetch_array($rs)) {
    $test = array();
    $test['ngaylap']=$rows['ngaylap'];
    $test['tieude']=$rows['tieude'];
    $test['noidung']=$rows['noidung'];
    array_push($data, $test);
} 
//var_dump($data);
}
?>
<div class="viewct" onclick="">
<?php 
	foreach ($data as $val) {

 ?>
<h1 align="center"><?php echo $val['tieude']; ?></h1>
<span>
	<u>Ngày Đăng:</u><?php echo $val['ngaylap']; ?></span>
	<div class="tb-con"  style="float:left; margin-top:30px;">
		<?php echo $val['noidung'] ?>
	</div>
<?php } ?>
</div>
<?php include('../template/<footer>	</footer>.php');
 ?>


